using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace VoteSystem.Model.Models.Mapping
{
    public class T_ThumbUpInfoMap : EntityTypeConfiguration<T_ThumbUpInfo>
    {
        public T_ThumbUpInfoMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.NickName)
                .HasMaxLength(200);

            this.Property(t => t.WeChartImg)
                .HasMaxLength(200);

            // Table & Column Mappings
            this.ToTable("T_ThumbUpInfo");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.NickName).HasColumnName("NickName");
            this.Property(t => t.WeChartImg).HasColumnName("WeChartImg");
        }
    }
}
